x86/mm: fix the check in get_pg_owner
authorWei Liu <wei.liu2@citrix.com>
Fri, 24 Mar 2017 11:34:01 +0000 (11:34 +0000)
committerWei Liu <wei.liu2@citrix.com>
Fri, 24 Mar 2017 12:23:47 +0000 (12:23 +0000)
commit0e7ffe9604ecd3bf534e0d224025e516f2cbd209
treeea289e0df9eca399499543cb97d96cdabb501e02
parent1096aa0238ed0209ca22b447a576f1795aed99b9
x86/mm: fix the check in get_pg_owner

PVH (both v1 and v2) guest is actually an translated guest. It should be
able to manipulate page table for other domains when acting as Dom0.

The removal of PVHv1 deleted the special case for PVH guest but didn't
add a check for HVM guest.

Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/mm.c